diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-06-17 09:02:32 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-06-17 09:02:32 +0000 |
| commit | 7a1524ba54f43d0f2a19e4bca2c6a2e0b01c5ef1 (patch) | |
| tree | daa214d404c7fc78b32419a028724e5671a6c7a4 /app/[lng]/evcp/(evcp) | |
| parent | fa6a6093014c5d60188edfc9c4552e81c4b97bd1 (diff) | |
(대표님) 20250617 18시 작업사항
Diffstat (limited to 'app/[lng]/evcp/(evcp)')
| -rw-r--r-- | app/[lng]/evcp/(evcp)/b-rfq/[id]/initial/page.tsx | 13 | ||||
| -rw-r--r-- | app/[lng]/evcp/(evcp)/budgetary-tech-sales-ship/page.tsx | 12 |
2 files changed, 11 insertions, 14 deletions
diff --git a/app/[lng]/evcp/(evcp)/b-rfq/[id]/initial/page.tsx b/app/[lng]/evcp/(evcp)/b-rfq/[id]/initial/page.tsx index 77ebebb1..1af65fbc 100644 --- a/app/[lng]/evcp/(evcp)/b-rfq/[id]/initial/page.tsx +++ b/app/[lng]/evcp/(evcp)/b-rfq/[id]/initial/page.tsx @@ -27,14 +27,11 @@ export default async function RfqPage(props: IndexPageProps) { const search = searchParamsInitialRfqDetailCache.parse(searchParams) const validFilters = getValidFilters(search.filters) - const promises = Promise.all([ - getInitialRfqDetail({ - ...search, - filters: validFilters, - }, - idAsNumber) - ]) - + const promises = getInitialRfqDetail({ + ...search, + filters: validFilters, + }, idAsNumber) + // 4) 렌더링 return ( <div className="space-y-6"> diff --git a/app/[lng]/evcp/(evcp)/budgetary-tech-sales-ship/page.tsx b/app/[lng]/evcp/(evcp)/budgetary-tech-sales-ship/page.tsx index 05b856e5..b7bf9d15 100644 --- a/app/[lng]/evcp/(evcp)/budgetary-tech-sales-ship/page.tsx +++ b/app/[lng]/evcp/(evcp)/budgetary-tech-sales-ship/page.tsx @@ -1,5 +1,5 @@ -import { searchParamsCache } from "@/lib/techsales-rfq/validations" -import { getTechSalesRfqsWithJoin } from "@/lib/techsales-rfq/service" +import { searchParamsShipCache } from "@/lib/techsales-rfq/validations" +import { getTechSalesShipRfqsWithJoin } from "@/lib/techsales-rfq/service" import { getValidFilters } from "@/lib/data-table" import { Shell } from "@/components/shell" import { DataTableSkeleton } from "@/components/data-table/data-table-skeleton" @@ -15,13 +15,13 @@ export default async function RfqPage(props: RfqPageProps) { // searchParams를 await하여 resolve const searchParams = await props.searchParams - // 파라미터 파싱 - const search = searchParamsCache.parse(searchParams); + // 조선용 파라미터 파싱 + const search = searchParamsShipCache.parse(searchParams); const validFilters = getValidFilters(search.filters); // 기술영업 조선 RFQ 데이터를 Promise.all로 감싸서 전달 const promises = Promise.all([ - getTechSalesRfqsWithJoin({ + getTechSalesShipRfqsWithJoin({ ...search, // 모든 파라미터 전달 (page, perPage, sort, basicFilters, filters 등) filters: validFilters, // 고급 필터를 명시적으로 오버라이드 (파싱된 버전) }) @@ -53,7 +53,7 @@ export default async function RfqPage(props: RfqPageProps) { /> } > - <RFQListTable promises={promises} className="h-full" /> + <RFQListTable promises={promises} className="h-full" rfqType="SHIP" /> </React.Suspense> </div> </Shell> |
